import request from '@/utils/request'

// 查询文献列表
export function listBibinfo(query) {
  return request({
    url: '/intelligence/bibinfo/list',
    method: 'get',
    params: query
  })
}

// 查询文献详细
export function getBibinfo(bibId) {
  return request({
    url: '/intelligence/bibinfo/' + bibId,
    method: 'get'
  })
}

// 新增文献
export function addBibinfo(data) {
  return request({
    url: '/intelligence/bibinfo',
    method: 'post',
    data: data
  })
}

// 修改文献
export function updateBibinfo(data) {
  return request({
    url: '/intelligence/bibinfo',
    method: 'put',
    data: data
  })
}

// 删除文献
export function delBibinfo(bibId) {
  return request({
    url: '/intelligence/bibinfo/' + bibId,
    method: 'delete'
  })
}

// 导出文献
export function exportBibinfo(query) {
  return request({
    url: '/intelligence/bibinfo/export',
    method: 'get',
    params: query
  })
}